package com.ffz.springbootvuedemo.bean;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 用户信息表(User)实体类
 *
 * @author
 * @since 2021-12-28 23:36:06
 */
@Entity
@Table(name = "user")
@Getter
@Setter
public class User implements Serializable {
    private static final long serialVersionUID = 533575957871102985L;
    /**
     * 主键
     */
    @Id
    private String id;
    /**
     * 用户名
     */
    @Column(name = "username")
    private String username;
    /**
     * 密码
     */
    @Column(name = "password")
    private String password;
    /**
     * 昵称
     */
    @Column(name = "nickname")
    private String nickname;
    /**
     * 年龄
     */
    @Column(name = "age")
    private Integer age;
    /**
     * 性别
     */
    @Column(name = "sex")
    private String sex;
    /**
     * 地址
     */
    @Column(name = "address")
    private String address;
}

